package com.huitone.gddw.dao.entity;

import java.util.Date;

public class PrgDispatchNotify {
    private String recId;

    private String prgId;

    private String paramtabId;

    private String notifyType;

    private String dispatchStatus = "0";

    private Date dispatchTime;

    private String dispatchStaffId;
    
    private String dispatchResult;

    private String desc;

    private String status = "1";

    private Date insertTime;

    private String insertStaffId;

    public String getDispatchResult() {
		return dispatchResult;
	}

	public void setDispatchResult(String dispatchResult) {
		this.dispatchResult = dispatchResult;
	}

	public enum NotifyType {
		RUN("正在运行", "1"), OVERLOAD("重载", "2"), PAUSE("暂停", "3"), STOP("停止", "4");
		
		private String displayName;
		private String code;
		
		private NotifyType(String displayName, String code) {
			this.displayName = displayName;
			this.code = code;
		}

		public String getDisplayName() {
			return displayName;
		}

		public String getCode() {
			return code;
		}
	}
    
    public enum DispatchStatus {
		WAIT("等待调度", "0"), PREPARE("准备调度", "1"), COMPLETED("已调度完毕", "2");
		
		private String displayName;
		private String code;
		
		private DispatchStatus(String displayName, String code) {
			this.displayName = displayName;
			this.code = code;
		}

		public String getDisplayName() {
			return displayName;
		}

		public String getCode() {
			return code;
		}
	}
    
    public enum DispatchResult {
		FAIL("失败", "0"), SUCCESS("成功", "1");
		
		private String displayName;
		private String code;
		
		private DispatchResult(String displayName, String code) {
			this.displayName = displayName;
			this.code = code;
		}

		public String getDisplayName() {
			return displayName;
		}

		public String getCode() {
			return code;
		}
	}
    
    public String getRecId() {
        return recId;
    }

    public void setRecId(String recId) {
        this.recId = recId == null ? null : recId.trim();
    }

    public String getPrgId() {
        return prgId;
    }

    public void setPrgId(String prgId) {
        this.prgId = prgId == null ? null : prgId.trim();
    }

    public String getParamtabId() {
        return paramtabId;
    }

    public void setParamtabId(String paramtabId) {
        this.paramtabId = paramtabId == null ? null : paramtabId.trim();
    }

    public String getNotifyType() {
        return notifyType;
    }

    public void setNotifyType(String notifyType) {
        this.notifyType = notifyType == null ? null : notifyType.trim();
    }

    public String getDispatchStatus() {
        return dispatchStatus;
    }

    public void setDispatchStatus(String dispatchStatus) {
        this.dispatchStatus = dispatchStatus == null ? null : dispatchStatus.trim();
    }

    public Date getDispatchTime() {
        return dispatchTime;
    }

    public void setDispatchTime(Date dispatchTime) {
        this.dispatchTime = dispatchTime;
    }

    public String getDispatchStaffId() {
        return dispatchStaffId;
    }

    public void setDispatchStaffId(String dispatchStaffId) {
        this.dispatchStaffId = dispatchStaffId == null ? null : dispatchStaffId.trim();
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc == null ? null : desc.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(Date insertTime) {
        this.insertTime = insertTime;
    }

    public String getInsertStaffId() {
        return insertStaffId;
    }

    public void setInsertStaffId(String insertStaffId) {
        this.insertStaffId = insertStaffId == null ? null : insertStaffId.trim();
    }
}